import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const SYSTEM: AppRouteRecordRaw = {
    path: '/system-management',
    name: 'system-management', // 和菜单管理中的component对齐
    component: DEFAULT_LAYOUT,
    meta: {
        locale: 'menu.system',
        icon: 'icon-settings',
        requiresAuth: true,
        order: 2,
    },
    children: [
        {
            path: 'menu',
            name: 'menu',
            component: () => import('@/views/system/menu/index.vue'),
            meta: {
                locale: 'menu.management',
                requiresAuth: true,
                roles: ['*'],
            },
        },
    ],
};

export default SYSTEM;
